<input class="checkbox" (click)='isStartDraw()'type="checkbox"/>: <button type="button" >点击绘图</button>

<div id="fathers" >
    <div class="son" *ngFor="let roo of rooms" id={{roo.id}} [ngStyle]="{'top.px': roo.y,'left.px':roo.x,'width.px':roo.width,'height.px':roo.height}"></div>
</div>
<div id="father" *ngIf="isdraw">
    <div class="son" id={{room.id}} [ngStyle]="{'top.px': room.y,'left.px':room.x,'width.px':room.width,'height.px':room.height}"></div>
</div>